
package com.kweative.model.exception;

import com.kweative.model.Table;
import com.kweative.model.column.Column;
import com.kweative.model.column.IColumn;

/**
 *
 * @author henrik
 */
public class ColumnNotFoundException extends StructureException {

    public ColumnNotFoundException(String field,Table table) {
        super(String.format("Field '%s' not found in table '%s'",field,table.getName()));
    }
    public ColumnNotFoundException(IColumn field,Table table) {
        this(field.getName(),table);
    }

}
